﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BaoMing.aspx.cs" Inherits="Manager_BaoMing" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .x-grid3-row .x-grid3-cell-inner
        {
            white-space: normal;
            padding: 10px 5px;
        }
        .x-grid3-row-body .expander
        {
            padding: 5px;
        }
        .x-grid3-row-body .expander p
        {
            padding: 5px;
        }
        .x-grid3-row-body .expander strong
        {
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AjaxLoadingType="mask" AutoSizePanelID="gridList" />
    <ext:Grid ID="gridList" runat="server" AllowPaging="true" PageSize="25" EmptyText="暂时没有相关数据!" RowNumberWidth="40px"
        DataKeyNames="Id" ShowBorder="false" EnableRowNumber="true" IsDatabasePaging="true" ForceFitAllTime="true"
        EnableRowNumberPaging="true" AutoScroll="true" ShowHeader="false" EnableCheckBoxSelect="true" OnRowCommand="gridList_RowCommand"
        OnPageIndexChange="gridList_PageIndexChange">
        <Columns>
            <ext:BoundField ID="BoundField1" runat="server" HeaderText="报名编号" TextAlign="Center"
                DataField="OrderNO" />
            <ext:BoundField ID="BoundField2" runat="server" HeaderText="姓名" DataField="UserName" />
            <ext:TemplateField ID="TemplateField1" runat="server" HeaderText="性别" TextAlign="Center">
                <ItemTemplate>
                    <%# GetSex(Eval("Sex"))%>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:TemplateField ID="TemplateField2" runat="server" HeaderText="出生日期" TextAlign="Center">
                <ItemTemplate>
                    <%# Convert.ToDateTime(Convert.ToString(Eval("Birthday"))).ToShortDateString()%>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField ID="BoundField3" runat="server" HeaderText="籍贯" DataField="PlaceOrigin" />
            <ext:TemplateField ID="TemplateField3" runat="server" HeaderText="户籍类型" TextAlign="Center">
                <ItemTemplate>
                    <%# GetCensusClass(Eval("CensusClass"))%>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:TemplateField ID="TemplateField4" runat="server" HeaderText="申请班级" TextAlign="Center">
                <ItemTemplate>
                    <%# GetClassType(Eval("RegClass"))%>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField ID="BoundField5" runat="server" HeaderText="儿童身份证号" DataField="IdCardNo" />
            <ext:TemplateField ID="TemplateField6" runat="server" HeaderText="报读学校" TextAlign="Center">
                <ItemTemplate>
                    <%# GetNurserySchool(Eval("NurserySchool"))%>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField ID="BoundField4" runat="server" HeaderText="填表时间" DataField="AddTime" />
            <ext:TemplateField ID="TemplateField5" runat="server" HeaderText="状态" TextAlign="Center">
                <ItemTemplate>
                    <%# GetStatus(Eval("Status"))%>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:WindowField ID="wfEdit" runat="server" WindowID="winViews" DataIFrameUrlFields="Id" ToolTip="报名数据修改" Width="30" Icon="UserEdit" DataIFrameUrlFormatString="EditSignTable.aspx?Id={0}" />
            <ext:LinkButtonField ID="lbtnfDelete" runat="server" CommandName="Delete" ToolTip="删除当前行数据" Icon="delete" ConfirmText="是否确定删除当前行数据？" Width="30" TextAlign="center" />
        </Columns>
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:ToolbarText ID="ToolbarText1" runat="server" Text="新生报名列表">
                    </ext:ToolbarText>
                    <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                    </ext:ToolbarFill>
                    <ext:Label ID="lblSearchTitle" runat="server" Text="快速检索">
                    </ext:Label>
                    <ext:DropDownList ID="ddlCensusClass" runat="server" Width="70px"></ext:DropDownList>
                    <ext:DropDownList ID="ddlStatus1" runat="server" Width="90px"></ext:DropDownList>
                    <ext:DropDownList ID="ddlNurserySchool" runat="server" Width="150px"></ext:DropDownList>
                    <ext:TwinTriggerBox ID="ttboxKeywords" ShowLabel="false" OnTrigger1Click="ttboxKeywords_Trigger1Click"
                        OnTrigger2Click="ttboxKeywords_Trigger2Click" Trigger1Icon="Clear" EmptyText="搜索关键词"
                        Trigger2Icon="Search" runat="server">
                    </ext:TwinTriggerBox>
                    <ext:ToolbarSeparator ID="ToolbarSeparator" runat="server">
                    </ext:ToolbarSeparator>
                    <ext:Button ID="btnImportExcel" runat="server" Text="报名表导出" Icon="PageExcel" EnableAjax="false" OnClick="btnImportExcel_Click"
                        DisableControlBeforePostBack="false">
                    </ext:Button>
                    <ext:Button ID="btnViewSign" runat="server" Text="查看报名表" Icon="Zoom" OnClick="btnViewSign_Click">
                    </ext:Button>
                    <ext:Button ID="btnCheck" runat="server" Text="报名受理" Icon="Accept" OnClick="btnCheck_Click">
                    </ext:Button>
                    <ext:Button ID="btnSelectDelete" runat="server" Text="删除选中" Icon="delete" ConfirmText="是否确定删除？" OnClick="btnSelectDelete_Click">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <PageItems>
            <ext:Button ID="btnRefresh" runat="server" Icon="arrowrefresh" OnClick="btnRefresh_Click">
            </ext:Button>
            <ext:ToolbarFill ID="ToolbarFill3" runat="server">
            </ext:ToolbarFill>
            <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
            </ext:ToolbarSeparator>
            <ext:ToolbarText ID="ToolbarText2" runat="server" Text="每页记录数：">
            </ext:ToolbarText>
            <ext:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
                OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                <ext:ListItem Text="15" Value="15" />
                <ext:ListItem Text="20" Value="20" />
                <ext:ListItem Text="25" Value="25" Selected="true" />
            </ext:DropDownList>
        </PageItems>
    </ext:Grid>
    <ext:Window ID="winViews" runat="server" Title="查看报名表" IsModal="true" Popup="false"
        EnableIFrame="true" WindowPosition="Center" Width="750px" Height="600px">
    </ext:Window>
    <ext:Window ID="winOrderCheck" runat="server" Width="300px" Height="220px" Title="报名表受理" CloseAction="HidePostBack"
        Icon="Accept" BodyPadding="5" Hidden="true" WindowPosition="Center" IsModal="true">
        <Items>
            <ext:Form ID="frmCheck" runat="server" ShowHeader="false" LabelAlign="Right" LabelWidth="100">
                <Rows>
                    <ext:FormRow ID="FormRow1" runat="server">
                        <Items>
                            <ext:DropDownList ID="ddlStatus" runat="server" Label="报名处理状态">
                            </ext:DropDownList>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow2" runat="server">
                        <Items>
                            <ext:TextBox ID="txtClassNum" runat="server" Label="班级"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow3" runat="server">
                        <Items>
                            <ext:NumberBox ID="txtSiteNo" runat="server" Label="号数"></ext:NumberBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow15" runat="server">
                        <Items>
                            <ext:TextArea ID="txtCheckInfo" runat="server" Label="处理情况" EmptyText="填写订单处理情况！">
                            </ext:TextArea>
                        </Items>
                    </ext:FormRow>
                </Rows>
                <Toolbars>
                    <ext:Toolbar ID="Toolbar2" runat="server" Position="Bottom">
                        <Items>
                            <ext:Button ID="btnCheckSave" runat="server" Icon="SystemSave" Text="保存操作" OnClick="btnCheckSave_Click">
                            </ext:Button>
                            <ext:HiddenField ID="hfSelectId" runat="server">
                            </ext:HiddenField>
                            <ext:Button ID="btnCheckReset" runat="server" Icon="Reload" Text="重 置">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
            </ext:Form>
        </Items>
    </ext:Window>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript">
function onReady() {
    winViews = Ext.getCmp("<%=winViews.ClientID %>");
    winViews.setPosition(0,0);
    winViews.setHeight(Ext.getCmp("<%=gridList.ClientID %>").getHeight());
}
</script>